<template>
	<div class="header">
		<a @click='goUrl'>
			<div class="header-left iconfont">&#xe623;</div>
		</a>
		<div class="header-center">{{ name?name:'资料库' }}</div>
		<router-link to="/search" v-if='!name'>
			<div class="header-right iconfont">&#xe615;</div>
		</router-link>
	</div>
</template>
<script>
export default {
	name: 'databankHeader',
	props:{
      name:String,
    },
	data: function(){
		return {
		}
	},
	methods:{
       goUrl:function() {
       		this.$router.go(-1)
          
       }
    },
	activated () {
    }
};
</script>

<style lang="less" scoped>
	@import '~styles/header.less';
</style>